package com.cc.enums;

import lombok.Getter;

/**
 * @author zhanghaibin
 */

@Getter
public enum HttpsCode {
    SUCCESS(200, "ok", ""),
    PARAMS_ERROR(501, "请求参数错误", "请求参数错误"),
    ACCOUNT_NOT_EXIST(501, "账号不存在", "账号不存在"),
    MODIFICATION_FAILED(502, "修改失败", "修改失败"),
    ADD_FAILED(502, "添加失败", "添加失败"),
    ACCOUNT_OR_PASSWORD_ERROR(501, "账号或者密码错误，请检查账号或者密码", "账号不存在"),
    NULL_ERROR(501, "请求数据为空", ""),
    DATA_ERROR(501, "当前存在数据不允许删除", ""),
    REMOVE_ERROR(501, "删除失败", ""),
    NOT_LOGIN(401, "未登录,请重新登录", ""),
    LOGIN_NOT_NO(501, "登录失败", ""),
    NO_AUTH(402, "无权限", ""),
    RESOURCE_DOES_NOT_EXIST(404, "资源不存在", ""),
    SYSTEM_ERROR(500, "系统内部异常", ""),
    ACCOUNT_EXIST(501,"账户重复请重新设置账户" ,"账户重复请重新设置账户" ),
    ACCOUNT_BLOCKED(409,"账户被封禁无法登录" ,"" );

    /**
     * 状态码信息
     */
    private final int code;
    /**
     * 状态码详情
     */
    private final String message;
    /**
     * 详情
     */
    private final String description;

    HttpsCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }
}
